package com.elitetyc.eliteim.client.command.impl;

import com.elitetyc.eliteim.common.util.MsgUtil;
import com.elitetyc.eliteim.client.command.InnerCommand;
import com.elitetyc.eliteim.client.command.anno.Command;
import com.elitetyc.eliteim.client.config.AllInfo;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author yuanchao.tan
 * @version 1.0
 * @description 输出相关信息
 * @Date 2021/9/17 14:31
 */
@Command(command = ":info",desc="输出服务相关信息")
public class InfoInnerCommand implements InnerCommand {

    @Autowired
    private AllInfo allInfo;

    @Override
    public void process(String msg) {
        MsgUtil.echoMsg("【client】：");
        MsgUtil.echoMsg(allInfo.getClient().toString());
        MsgUtil.echoMsg("【server】：");
        MsgUtil.echoMsg(allInfo.getServer().toString());
    }



}
